from django.urls import path, re_path
from . import views
urlpatterns = [
    path('',views.index_handler,name='index'),
    # 可以接收正则表达式
    # re_path('(\d+)',views.re_handler,name = 're'),
    # 这两个正则会抢,输入http://127.0.0.1:8000/user/kong1234 ,会默认走\d那个,输出1234
    re_path("(^\w+.*\d+$)",views.user_handler),

    path('reverse',views.reverse_handler),

    path('redirect',views.redirect_handler),


]